﻿namespace WMS6.Web.StockCountServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="CycleCountCriteriaInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class CycleCountCriteriaInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CcCriteriaIDField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private decimal DaysBetweenField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string InclZeroCountField;
        [OptionalField]
        private string LocSelectionField;
        [OptionalField]
        private int MaxCountsField;
        [OptionalField]
        private decimal QtyLessThanField;
        [OptionalField]
        private string RequestOnlyField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string ShowQtyField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CcCriteriaID
        {
            get
            {
                return this.CcCriteriaIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CcCriteriaIDField, value))
                {
                    this.CcCriteriaIDField = value;
                    this.RaisePropertyChanged("CcCriteriaID");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public decimal DaysBetween
        {
            get
            {
                return this.DaysBetweenField;
            }
            set
            {
                if (!this.DaysBetweenField.Equals(value))
                {
                    this.DaysBetweenField = value;
                    this.RaisePropertyChanged("DaysBetween");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string InclZeroCount
        {
            get
            {
                return this.InclZeroCountField;
            }
            set
            {
                if (!object.ReferenceEquals(this.InclZeroCountField, value))
                {
                    this.InclZeroCountField = value;
                    this.RaisePropertyChanged("InclZeroCount");
                }
            }
        }

        [DataMember]
        public string LocSelection
        {
            get
            {
                return this.LocSelectionField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocSelectionField, value))
                {
                    this.LocSelectionField = value;
                    this.RaisePropertyChanged("LocSelection");
                }
            }
        }

        [DataMember]
        public int MaxCounts
        {
            get
            {
                return this.MaxCountsField;
            }
            set
            {
                if (!this.MaxCountsField.Equals(value))
                {
                    this.MaxCountsField = value;
                    this.RaisePropertyChanged("MaxCounts");
                }
            }
        }

        [DataMember]
        public decimal QtyLessThan
        {
            get
            {
                return this.QtyLessThanField;
            }
            set
            {
                if (!this.QtyLessThanField.Equals(value))
                {
                    this.QtyLessThanField = value;
                    this.RaisePropertyChanged("QtyLessThan");
                }
            }
        }

        [DataMember]
        public string RequestOnly
        {
            get
            {
                return this.RequestOnlyField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RequestOnlyField, value))
                {
                    this.RequestOnlyField = value;
                    this.RaisePropertyChanged("RequestOnly");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string ShowQty
        {
            get
            {
                return this.ShowQtyField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ShowQtyField, value))
                {
                    this.ShowQtyField = value;
                    this.RaisePropertyChanged("ShowQty");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

